﻿using Furion;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WxCore.Sqlsugar
{
    /// <summary>
    /// SqlSugar仓储类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class SqlSugarRepository<T> : SimpleClient<T> where T : class, new()
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="context"></param>
        public SqlSugarRepository(ISqlSugarClient context = null) : base(context) // 默认值等于null不能少
        {
            base.Context = SqlSugarHelper.Db;
        }
    }
}
